package com.ruoyi.system.domain;

import java.math.BigDecimal;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 餐馆订单对象 res_order
 * 
 * @author ruoyi
 * @date 2025-06-03
 */
public class ResOrder extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 餐厅名 */
    @Excel(name = "餐厅名")
    private String resName;

    /** 用户名 */
    @Excel(name = "用户名")
    private String nickName;

    /** 套餐名 */
    @Excel(name = "套餐名")
    private String packageName;

    /** 购票数量 */
    @Excel(name = "购票数量")
    private Long ticketCount;

    /** 有效期 */
    @Excel(name = "有效期")
    private String validPeriod;

    /** 价格 */
    @Excel(name = "价格")
    private BigDecimal price;

    /** 状态 */
    @Excel(name = "状态")
    private Long status;

    /** 下单时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "下单时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date orderTime;

    /** 订单id */
    private Long orderId;

    /** 餐馆id */
    private Long resId;

    /** 用户id */
    private Long userId;

    /** 套餐id */
    private Long packageId;

    /** 顾客id */
    private Long customerId;

    public Long getCustomerId() {
        return customerId;
    }

    public void setCustomerId(Long customerId) {
        this.customerId = customerId;
    }

    public void setResName(String resName) 
    {
        this.resName = resName;
    }

    public String getResName() 
    {
        return resName;
    }

    public void setNickName(String nickName) 
    {
        this.nickName = nickName;
    }

    public String getNickName() 
    {
        return nickName;
    }

    public void setPackageName(String packageName) 
    {
        this.packageName = packageName;
    }

    public String getPackageName() 
    {
        return packageName;
    }

    public void setTicketCount(Long ticketCount) 
    {
        this.ticketCount = ticketCount;
    }

    public Long getTicketCount() 
    {
        return ticketCount;
    }

    public void setValidPeriod(String validPeriod) 
    {
        this.validPeriod = validPeriod;
    }

    public String getValidPeriod() 
    {
        return validPeriod;
    }

    public void setPrice(BigDecimal price) 
    {
        this.price = price;
    }

    public BigDecimal getPrice() 
    {
        return price;
    }

    public void setStatus(Long status) 
    {
        this.status = status;
    }

    public Long getStatus() 
    {
        return status;
    }

    public void setOrderTime(Date orderTime) 
    {
        this.orderTime = orderTime;
    }

    public Date getOrderTime() 
    {
        return orderTime;
    }

    public void setOrderId(Long orderId) 
    {
        this.orderId = orderId;
    }

    public Long getOrderId() 
    {
        return orderId;
    }

    public void setResId(Long resId) 
    {
        this.resId = resId;
    }

    public Long getResId() 
    {
        return resId;
    }

    public void setUserId(Long userId) 
    {
        this.userId = userId;
    }

    public Long getUserId() 
    {
        return userId;
    }

    public void setPackageId(Long packageId) 
    {
        this.packageId = packageId;
    }

    public Long getPackageId() 
    {
        return packageId;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("resName", getResName())
            .append("nickName", getNickName())
            .append("packageName", getPackageName())
            .append("ticketCount", getTicketCount())
            .append("validPeriod", getValidPeriod())
            .append("price", getPrice())
            .append("status", getStatus())
            .append("orderTime", getOrderTime())
            .append("orderId", getOrderId())
            .append("resId", getResId())
            .append("userId", getUserId())
            .append("packageId", getPackageId())
            .append("customerId", getCustomerId())
            .toString();
    }
}
